import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_hf/util/http_util.dart';
import 'package:xr_cache/xr_cache.dart';

import 'app.dart';

void main() async {
  /// 确保初始化完成
  WidgetsFlutterBinding.ensureInitialized();

  /// 滚动性能优化 1.22.0
  GestureBinding.instance.resamplingEnabled = true;
  await XrCache.preInit();
  HttpUtil.initDio();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const AppPage();
  }
}
